home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Gamer Resource Kit / Hardcore Gamer Resource Kit - Disc 2.iso / Pc / A_C / CRSHK10A.ZIP / CRSET.BAT < prev    next >
DOS Batch File  |  1994-12-19  |  3KB  |  119 lines

  1. @echo off
  2. cls
  3. Rem /  Batch File Installer for
  4. Rem /      Creature Shock SET file
  5. Rem /      version 1.00a
  6. Rem /  (c) 1994 Virgin Interactive Entertainment
  7. Rem /  DH12.19
  8.  
  9. if exist CREATURE.SET goto NOERR
  10. goto ERR3
  11.  
  12. :NOERR
  13. if %1x==x goto TryDefault
  14. if exist %1\SHOCK.EXE goto DO_IT
  15. goto ERR
  16.  
  17. :TryDefault
  18. if exist c:\crshock\shock.exe goto CONTINUE
  19. goto usage
  20.  
  21. :CONTINUE
  22. echo Detected default install directory. 
  23. echo.
  24. set CRSHOCKPATH=C:\CRSHOCK
  25. if %CRSHOCKPATH%==C:\CRSHOCK goto DO_IT2
  26. goto ERR2
  27.  
  28. :DO_IT
  29. set CRSHOCKPATH=%1
  30. if %CRSHOCKPATH%==%1 goto DO_IT2 
  31. goto ERR2
  32.  
  33. :DO_IT2
  34. echo One moment please...
  35. echo.
  36. echo Copying level select file...
  37. copy creature.set %CRSHOCKPATH% /Y > NUL
  38. echo.
  39. pause
  40. if exist %CRSHOCKPATH%\creature.set goto SUCCESS
  41. goto ERROR
  42.  
  43. :ERR3
  44. echo.
  45. echo           ────────  CREATURE.SET file not found  ─────────
  46. echo.
  47. echo           Please ensure that the install is run from the 
  48. echo           floppy disk drive.
  49. echo.
  50. echo           For example, you should be typing:
  51. echo           A:
  52. echo           CRSET
  53. echo.
  54. echo.
  55. goto ERROR
  56.  
  57. :ERR2
  58. echo.
  59. echo           ───────  Not enough environment space   ───────
  60. echo                  to finish installation of update.
  61. echo.
  62. echo            Please increase the environment space before 
  63. echo            running the install. 
  64. echo.
  65. echo            For example, add: 
  66. echo            SHELL=C:\DOS\COMMAND.COM C:\DOS\ /p /e:256
  67. echo            to your CONFIG.SYS file.
  68. echo.
  69. echo            Do NOT run the install from Windows.
  70. echo.
  71. echo.
  72. goto ERROR
  73.  
  74. :ERR
  75. echo. 
  76. echo      *** Could not find the Creature Shock files in: 
  77. echo          %1 
  78. echo          please check path.
  79.  
  80. :USAGE
  81. echo. 
  82. echo      To update your installation of Creature Shock, type "CRSET"
  83. echo      followed by a space and the name of the directory where the
  84. echo      Creature Shock files were originally installed.
  85. echo. 
  86. echo      For example, if the update files are located on a disk in
  87. echo      drive A:, and Creature Shock was originally installed to D:\CRSHOCK, 
  88. echo      the commands would look like this:
  89. echo. 
  90. echo      A:
  91. echo      CRSET D:\CRSHOCK
  92. echo. 
  93. goto end
  94.  
  95. :ERROR
  96. echo           ─── Failed attempt to update Creature Shock ────
  97. echo.
  98. echo                  For assistance, please contact 
  99. echo                Virgin Interactive Entertainment's
  100. echo                        Technical Support
  101. echo                         (714) 833-1999
  102. goto end
  103.  
  104. :SUCCESS
  105. cls
  106. echo      ───────── Level Select File installed successfully ─────────
  107. echo.
  108. echo      To run the game, just change to the %CRSHOCKPATH% 
  109. echo      directory and type SHOCK
  110. echo.
  111. echo      After selecting "Play", you can now choose to start from any
  112. echo      of the five levels.
  113. echo.
  114. echo.
  115.  
  116. :END
  117. set CRSHOCKPATH=
  118. echo.
  119.